import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/user.js'
import createVuexAlong from 'vuex-along'
// 这个插件可以将vuex中的数据，存到本地储存，刷新之后还可以把数据恢复

Vue.use(Vuex)

export default new Vuex.Store({
  strict: true,
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: { user },
  plugins: [createVuexAlong()]
})
